---
title: "Replication instructions for 'Misperceived Social Norms and Willingness to Act Against Climate Change'"
author: Peter Andre, Teodora Boneva, Felix Chopra, Armin Falk
date: April 2024
---

## Overview

This replication package reproduces the published tables and figures from Andre et al. (2024). The data analysis is carried out in Stata. The main do-file calls all other do-files to clean the data and generate the figures and tables published in the paper and the online appendix. The replicator should expect the code to run for less than 10 minutes.

## Data Availability and Provenance Statements

The data for this paper was collected by the authors as part of a set of three survey experiments. The data is included in this replication package.

### Statement about Rights

- [X] I certify that the author(s) of the manuscript have legitimate access to and permission to use the data used in this manuscript. 
- [ ] I certify that the author(s) of the manuscript have documented permission to redistribute/publish the data contained within this replication package. Appropriate permission are documented in the [LICENSE.txt](LICENSE.txt) file.

### Summary of Availability

- [X] All data **are** publicly available.
- [ ] Some data **cannot be made** publicly available.
- [ ] **No data can be made** publicly available.

### Details on each Data Source

All of the datasets below are provided in the replication file.

| Data.Name    | Data.Files | Location  | Citation   |
| ----           | ----         | -  | ----         | 
| Wave 1 | climate_raw_wave_1             | data/ | Andre et al. (2024) |
| Wave 2 | climate_raw_wave_2             | data/ | Andre et al. (2024) |
| Auxiliary Experiment| belief_donation_survey   | data/ | Andre et al. (2024) |
| FIPS codes | county_states       | data/ | Andre et al. (2024) |

The data for Wave 1, Wave 2, the Auxiliary Experiment, as well the FIPS codes are included in the replication package.


## Computational requirements

### Software Requirements

- Stata (code was last run with version 16.1)
  - `estout`
  - `reghdfe`
  - `coefplot`
  - `interflex`
  - `winsor`
  - `winsor2`
  - `grstyle`
  - `blindschemes`
  - The program "`main.do`" contains code to install all dependencies (need to uncomment lines 12-19).

### Memory and Runtime Requirements

#### Summary

Approximate time needed to reproduce the analyses on a standard (2023) desktop machine:

- [X] <10 minutes
- [ ] 10-60 minutes
- [ ] 1-2 hours
- [ ] 2-8 hours
- [ ] 8-24 hours
- [ ] 1-3 days
- [ ] 3-14 days
- [ ] > 14 days
- [ ] Not feasible to run on a desktop machine, as described below.

#### Details

The code was last run on a laptop with 32 GB of RAM on macOS 14.2.1. The computations took less than 5 minutes to conclude.


## Description of programs/code

All programs below are called from `code/main.do` in the `code` folder of the replication package:

- The file `code/setup.do` sets parameters and the directory path variables. Replicators have to change the path variable on line 22 before executing `code/main.do`.
- Programs in `code/cleaning` will clean the raw data and export the cleaned data to `out/data`.
- All other do-files in `code/` are used to reproduce the tables and figures.

## Instructions to Replicators

- Edit `code/setup.do` to set the default path for the root of the replication directory (line 22).
- If necessary: Uncomment lines 12-19 in `code/main.do` to install all necessary Stata packages.
- Run `code/main.do` to clean the data and generate figures and tables.

### Details

- `code/setup.do`: will set up paths, local and global macros, and adjust the settings relevant for the production of graphics.
- `code/main.do`: This program calls `setup.do`, installs all necessary libraries, calls the do-files for data cleaning, and then calls the individual do-files that generate tables and figures for the paper.


## List of tables and programs

The provided code reproduces:

- [ ] All numbers provided in text in the paper
- [X] All tables and figures in the paper
- [ ] Selected tables and figures in the paper, as explained and justified below.


| Figure/Table | Program                   | Output file  | 
| -- | --   | -- |
| Figure 2.A | code/analysis_wave_1      | out/figures/fig_2_panel_A | 
| Figure 2.B | code/analysis_wave_1      | out/figures/fig_2_panel_B | 
| Figure 3   | code/analysis_wave_2      | out/figures/fig_3  | 
| Figure A2  | code/analysis_wave_1      | out/figures/fig_A2 | 
| Figure A3  | code/analysis_wave_1      | out/figures/fig_A3 | 
| Figure A4  | code/analysis_wave_1      | out/figures/fig_A4 | 
| Figure A5  | code/fig_A5               | out/figures/fig_A5 | 
| Figure A6  | code/analysis_wave_2      | out/figures/fig_A6 | 
| Figure A7  | code/analysis_wave_2      | out/figures/fig_A7 | 
| Figure A8  | code/analysis_wave_2      | out/figures/fig_A8 | 
| Table 1    | code/analysis_wave_1      | out/tables/tab_1   | 
| Table 2    | code/analysis_wave_2      | out/tables/tab_2   | 
| Table 3    | code/analysis_wave_2      | out/tables/tab_3   | 
| Table 4    | code/analysis_wave_2      | out/tables/tab_4   | 
| Table A1   | code/tab_A1               | out/tables/tab_A1  | 
| Table A2   | code/analysis_wave_1      | out/tables/tab_A2  | 
| Table A3   | code/analysis_wave_1      | out/tables/tab_A3  |
| Table A4   | code/analysis_wave_1      | out/tables/tab_A4  |
| Table A5   | code/analysis_wave_1      | out/tables/tab_A5  |
| Table A6   | code/analysis_wave_1      | out/tables/tab_A6  |
| Table A7   | code/analysis_wave_2      | out/tables/tab_A7  |
| Table A8   | code/analysis_wave_2      | out/tables/tab_A8  |
| Table A9   | code/analysis_wave_2      | out/tables/tab_A9  |
| Table A10  | code/analysis_wave_2      | out/tables/tab_A10 |
| Table A11  | code/analysis_wave_2      | out/tables/tab_A11 |
| Table A12  | code/analysis_wave_2      | out/tables/tab_A12 |
| Table A13  | code/analysis_wave_2      | out/tables/tab_A13 |
| Table A14  | code/analysis_wave_2      | out/tables/tab_A14 |
| Table A15  | code/analysis_wave_2      | out/tables/tab_A15 |
| Table A16  | code/analysis_wave_2      | out/tables/tab_A16 |
| Table A17  | code/analysis_wave_2      | out/tables/tab_A17 |
| Table A18  | code/analysis_wave_2      | out/tables/tab_A18 |

Note that Figure 1 (Information treatments in wave 2) is manually generated.

## References

Andre, P., Boneva, T., Chopra, F., and Falk, A. (2024). "Misperceived Social Norms and Willingness to Act Against Climate Change".
